import Vue from 'vue'
import Router from 'vue-router'

import Login from 'views/login.vue'
import Home from 'components/Home.vue'
/**系统首页*/ 
import Test1 from '@/components/403.vue'
/**系统管理 */
import menu from 'views/systemManage/menu.vue'
import roles from 'views/systemManage/roles.vue'
import department from 'views/systemManage/department.vue'
import user from 'views/systemManage/user.vue'
import code from 'views/systemManage/code.vue'
import log from 'views/systemManage/log.vue'
/**计划管理*/ 
import planTask from 'views/planManage/planTask.vue'
import planOtherTask from 'views/planManage/planOtherTask.vue'
/**计划排成 /adscm/orderDetail*/
import planGraph from 'views/planManage/planGraph.vue'
import orderGraph from 'views/planManage/orderGraph.vue'
import liveGraph from 'views/planManage/liveGraph.vue'
import createValue from 'views/planManage/createValue.vue'
import planStatistics from 'views/planManage/planStatistics.vue'
import planPxStatistics from 'views/planManage/planPxStatistics.vue'
import planPcStatistics from 'views/planManage/planPcStatistics.vue'
import planScStatistics from 'views/planManage/planScStatistics.vue'
import planQgStatistics from 'views/planManage/planQgStatistics.vue'
import planZjStatistics from 'views/planManage/planZjStatistics.vue'
/**销售管理任务*/
import salesTask from 'views/salesManage/task.vue'
/**销售管理-客户基本信息*/
import customerInfo from 'views/salesManage/customerInfo.vue'
/**班组管理   */
import deptManage from 'views/deptManage/deptManage.vue'
/**工艺管理 -工艺编制*/
import processPlanningTask from 'views/technologyManage/processPlanningTask.vue'
/**编程管理任务*/
import programmingTask from 'views/programmingManage/programTask.vue'
/**物料管理任务-到料任务*/
import incomingMaterial from 'views/materielManage/incomingMaterial.vue'
/**物料管理任务-下料任务*/
import blankingTask from 'views/materielManage/blankingTask.vue'
/**物料管理任务-签收入库*/
import blankingInputStore from 'views/materielManage/blankingInputStore.vue'
/**物料管理任务-下料筛选*/
import blankingScreen from 'views/materielManage/blankingScreen.vue'
/**刀具管理 -刀具准备任务*/
import toolReadyTask from 'views/toolManage/toolReadyTask.vue'
/**生产管理 -生产任务*/
import productionTask from 'views/productionManage/productionTask.vue'
/**生产管理 -成品库管理-库存*/
import cpkProduct from 'views/productionManage/cpkProduct.vue'
/**生产管理 -成品库管理-库存*/
import cpkProductList from 'views/productionManage/cpkProductList.vue'
/**生产数据 -工作簿*/
import productionWorkerData from 'views/productionManage/productionWorkerData.vue'
import productionWorkerDataPx from 'views/productionManage/productionWorkerDataPx.vue'

/**检验管理 -检验任务*/
import testTask from 'views/testManage/testTask.vue'
/**外协管理 -外协管理任务*/
import wxManageTask from 'views/wxManage/wxManageTask.vue'

/**发货管理 -发货管理任务*/
import deliverGoodsTask from 'views/deliverGoodsManage/deliverGoodsTask.vue'
/**财务管理 -开票任务*/
import invoiceTask from 'views/financeManage/invoiceTask.vue'
/**采购管理 -采购任务*/
import purchaseTask from 'views/purchaseManage/purchaseTask.vue'
/**采购管理 -采购物料清单*/
import purchaseBOM from 'views/purchaseManage/purchaseBOM.vue'
/**采购管理 -供应商管理*/
import supplierBase from 'views/purchaseManage/supplierBase.vue'
/**铁削管理 -铁削管理任务*/
import ironFlingsTask from 'views/ironFlingsManage/ironFlingsTask.vue'
/**原料库管理 -原料库任务*/
import rawMaterialsBankTask from 'views/rawMaterialsBankManage/rawMaterialsBankTask.vue'
/**产具组织 */
import productionGroup from 'views/productionManage/productionGroup.vue'
/**待采购清单 */
import needBuy from 'views/productionManage/needBuy.vue'
/**产具库存 */
import productionStore from 'views/productionManage/productionStore.vue'
/**不合格产品 */
import unqualifiedProduct from 'views/productionManage/unqualifiedProduct.vue'

Vue.use(Router)
export default new Router({
  mode: process.env.NODE_ENV === 'production'?null:'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
        component: Home,
        meta: {title: '自述文件'},
        children: [
          {meta: {title: '系统首页'}, path: '/dashboard', component: Test1},
          /**系统管理 */
          {meta: {title: '菜单管理'},path: '/adscm/system/menu',component: menu},
          {meta: {title: '角色管理'},path: '/adscm/system/role',component: roles},
          {meta: {title: '部门管理'},path: '/adscm/system/dept',component: deptManage},
          {meta: {title: '用户管理'},path: '/adscm/system/user',component: user},
          {meta: {title: '日志管理'},path: '/adscm/system/log',component: log},
          {meta: {title: '码表管理'},path: '/adscm/system/code',component: code},
          /**毛坯外协管理 */
          {meta: {title: '待办毛坯外协'},path: '/adscm/blankWxManage',component: planOtherTask},
          /**计划管理*/ 
          {meta: {title: '计划任务'},path: '/adscm/plan/task',component: planTask},
          /**不合格品管理*/ 
          {meta: {title: '不合格品管理'},path: '/adscm/operation/unqualifiedProduct',component: unqualifiedProduct},
          /**成品库品管理*/ 
          {meta: {title: '成品库库存'},path: '/adscm/cpk/cpkc',component: cpkProduct},
          /**成品库品管理*/ 
          {meta: {title: '成品库库存记录'},path: '/adscm/cpk/ckjl',component: cpkProductList},
          // /**班组管理*/ 
          // {meta: {title: '班组管理'},path: '/adscm/system/dept',component: deptManage},

          /**计划排成 */
          {meta: {title: '排程统计'},path: '/adscm/planGraph',component: planGraph},
          {meta: {title: '订单分析'},path: '/adscm/orderGraph',component: orderGraph},
          {meta: {title: '生产分析'},path: '/adscm/liveGraph',component: liveGraph},
          {meta: {title: '缔造价值'},path: '/adscm/createValue',component: createValue},
          {meta: {title: '计划排成'},path: '/adscm/planStatistics',component: planStatistics},
          {meta: {title: '普铣排程'},path: '/adscm/planPxStatistics',component: planPxStatistics},
          {meta: {title: '普车排程'},path: '/adscm/planCxStatistics',component: planPcStatistics},
          {meta: {title: '数车排程'},path: '/adscm/planScStatistics',component: planScStatistics},
          {meta: {title: '钳工排程'},path: '/adscm/planQgStatistics',component: planQgStatistics},
          {meta: {title: '检验排程'},path: '/adscm/planZjStatistics',component: planZjStatistics},

          /**销售管理任务*/ 
          {meta: {title: ''},path: '/adscm/salesManage/salesTask',component: salesTask},
          /**销售管理-客户基本信息*/
          {meta: {title: ''},path: '/adscm/salesManage/customerInfo',component: customerInfo},
           /**工艺管理 -工艺编制*/
          {meta: {title: ''},path: '/adscm/technologyManage/processPlanningTask',component: processPlanningTask},
          /**编程管理任务*/
          {meta: {title: ''},path: '/adscm/programmingManage/programmingTask',component: programmingTask},
          /**物料管理任务-到料任务*/
          {meta: {title: ''},path: '/adscm/materielManage/incomingMaterial',component: incomingMaterial},
          /**物料管理任务-签收入库*/
          {meta: {title: ''},path: '/adscm/materielManage/reachMateriel',component: blankingInputStore}, 
          /**物料管理任务-下料筛选*/
          {meta: {title: ''},path: '/adscm/materielManage/blankingScreen',component:blankingScreen},
          /**物料管理任务-待下料*/
          {meta: {title: ''},path: '/adscm/materielManage/blankingTask',component:blankingTask},
          /**刀具管理 -刀具准备任务*/
          {meta: {title: ''},path: '/adscm/toolManage/toolReadyTask',component: toolReadyTask},

           /**生产管理 -生产任务*/
          {meta: {title: ''},path: '/adscm/productionManage/productionTask',component: productionTask},
           /**生产管理 -生产任务*/
          {meta: {title: ''},path: '/adscm/productionManage/productionWorkerData',component: productionWorkerData}, 
          /**生产管理 -普铣任务工作台*/
          {meta: {title: ''},path: '/adscm/productionManage/productionWorkerDataPx',component: productionWorkerDataPx},

          /**检验管理 -检验任务*/
          {meta: {title: ''},path: '/adscm/testManage/testTask',component: testTask},
          /**外协管理 -外协管理任务*/
          {meta: {title: ''},path: '/adscm/wxManage/wxTask',component: wxManageTask},
          /**发货管理 -发货管理任务*/
          {meta: {title: ''},path: '/adscm/deliverGoodsManage/deliverGoodsTask',component: deliverGoodsTask},
          /**财务管理 -开票任务*/
          {meta: {title: ''},path: '/adscm/financeManage/invoiceTask',component: invoiceTask},
          /**采购管理 -采购任务*/
          {meta: {title: ''},path: '/adscm/purchaseManage/purchaseTask',component: purchaseTask},
          /**采购管理 -采购物料清单*/
          {meta: {title: ''},path: '/adscm/purchaseManage/purchaseBOM',component: purchaseBOM},
          /**采购管理 -供应商管理*/
          {meta: {title: ''},path: '/adscm/purchaseManage/supplierBase',component: supplierBase},
          /**铁削管理 -铁削管理任务*/
          {meta: {title: ''},path: '/adscm/ironFlingsManage/ironFlingsTask',component: ironFlingsTask},
          /**原料库管理 -原料库任务*/
          {meta: {title: ''},path: '/adscm/rawMaterialsBankManage/rawMaterialsBankTask',component: rawMaterialsBankTask},


          /**产具管理 */
          /**产具组织 */
          {meta: {title: ''},path: '/adscm/system/origin/treeMap',component: productionGroup},
          {meta: {title: ''},path: '/adscm/system/origin/waitCg',component: needBuy},
          /**产具库存 */
          {meta: {title: ''},path: '/adscm/system/origin/store',component: productionStore},
         
        ]
    },
    {
      path: '/login',
      component: Login
      
    }
  ]
})